package com.qixiaobao.web.controller.system;

import com.qixiaobao.web.controller.core.controller.BaseController;
import com.qixiaobao.common.core.domain.AjaxResult;
import com.qixiaobao.system.service.IFileInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 文件信息
 * @Author yangxm
 * @Date 2025/6/17 15:30
 */
@RestController
@RequestMapping("/file")
public class FileInfoController extends BaseController {

    @Autowired
    private IFileInfoService fileInfoService;

    /**
     * @Description 获取owner对应的文件信息
     * @Author yangxm
     * @Date 2025/6/17 15:34
     * @param owner
     * @return com.qixiaobao.common.core.domain.AjaxResult
     */
    @RequestMapping("/owner/{owner}")
    public AjaxResult ownerList(@PathVariable("owner") String owner){
        return AjaxResult.success(fileInfoService.selectFileInfoListByOwner(owner));
    }
}
